package com.sanyang.lawyer.service.adm;

import com.sanyang.lawyer.entity.Adm_Espress_Company;
import com.sanyang.lawyer.mapper.adm.AdmEspressCompanyMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @program: lawyer
 * @description: 快递公司Service
 * @author: Mr.Wang
 * @create: 2019-10-23 10:19
 **/

@Service
public class AdmEspressCompanyService {

    @Autowired
    private AdmEspressCompanyMapper admEspressCompanyMapper;

    public List<Adm_Espress_Company> listall(){
      return admEspressCompanyMapper.listall();
    }

    public List<Adm_Espress_Company> companfurry(String companfu){
        return admEspressCompanyMapper.companfurry(companfu);
    }

    public Adm_Espress_Company getbyid(int id){
        return admEspressCompanyMapper.getbyid(id);
    }

    public void insert(Adm_Espress_Company admEspressCompany){
        this.admEspressCompanyMapper.insert(admEspressCompany);
    }

    public void delete(int id){
        this.admEspressCompanyMapper.delete(id);
    }

}
